package com.coolgor.axnut.entity.mdmis;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 系统自动任务 操作痕迹实体类
 * 
 * @author CoolGor
 *
 */
public class TaskTraceCondition extends TaskTrace{
	
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@JsonProperty("task_time_begin")
	private Date taskTimeBegin; 
	
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@JsonProperty("task_time_end")
	private Date taskTimeEnd; 	
	
	public TaskTraceCondition() {
		super();
	}
	
	public TaskTraceCondition(TaskTrace taskTrace) {
		this.setRecordID(taskTrace.getRecordID());
		this.setTaskID(taskTrace.getTaskID());
		this.setTaskName(taskTrace.getTaskName());
		this.setTaskTime(taskTrace.getTaskTime());
		this.setOperation(taskTrace.getOperation());
		this.setResult(taskTrace.getResult());
		this.setRemark(taskTrace.getRemark());
	}

	public Date getTaskTimeBegin() {
		return taskTimeBegin;
	}

	public void setTaskTimeBegin(Date taskTimeBegin) {
		this.taskTimeBegin = taskTimeBegin;
	}

	public Date getTaskTimeEnd() {
		return taskTimeEnd;
	}

	public void setTaskTimeEnd(Date taskTimeEnd) {
		this.taskTimeEnd = taskTimeEnd;
	}

	@Override
	public String toString() {
		return "TaskTraceCondition [getTaskTimeBegin()=" + getTaskTimeBegin() + ", getTaskTimeEnd()=" + getTaskTimeEnd()
				+ ", getRecordID()=" + getRecordID() + ", getTaskID()=" + getTaskID() + ", getTaskName()="
				+ getTaskName() + ", getTaskTime()=" + getTaskTime() + ", getOperation()=" + getOperation()
				+ ", getResult()=" + getResult() + ", getRemark()=" + getRemark() + ", toString()=" + super.toString()
				+ ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + "]";
	}
	
	
}
